package com.shut.vehicle.util;

import cn.hutool.cache.Cache;
import cn.hutool.cache.CacheUtil;

/**
 * @author 卢斌
 */
public class JVMBufferUtil {

    private final static Cache<String, String> CACHE = CacheUtil.newTimedCache(3600000L);


    public static void put(String key, String value) {
        CACHE.put(key, value);
    }

    public static String get(String key) {
        return CACHE.get(key);
    }

    public static boolean containsKey(String key) {
        return CACHE.containsKey(key);
    }

    public static void remove(String key) {
        CACHE.remove(key);
    }

}
